﻿using Microsoft.Extensions.Localization;
using BW.WMS.Localization;
using Volo.Abp.Ui.Branding;
using Volo.Abp.DependencyInjection;

namespace BW.WMS.Web;

[Dependency(ReplaceServices = true)]
public class WMSBrandingProvider : DefaultBrandingProvider
{
    private IStringLocalizer<WMSResource> _localizer;
    /// <summary>
    /// 
    /// </summary>
    /// <param name="localizer"></param>
    public WMSBrandingProvider(IStringLocalizer<WMSResource> localizer)
    {
        _localizer = localizer;
    }

    public override string AppName => _localizer["AppName"];
}
